package com.xdcplus.web.common.enums.base;

/**
 * 供应商类型
 * @author Fish.Fei
 */
public enum BaseProviderTypeEnum {
    C("C", "客户"),
    M("M", "厂商"),
    ;

    private String code;

    private String msg;

    public static String getMsg(String code) {
        for (BaseProviderTypeEnum ele : values()) {
            if(ele.getCode().equals(code)) {return ele.getMsg();}
        }
        return null;
    }

    BaseProviderTypeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
